home *** CD-ROM | disk | FTP | other *** search
/ PC Media 7 / PC MEDIA CD07.iso / share / prog / cm / cmbag.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-06  |  783 b   |  31 lines

  1. // CmBag.cpp
  2. // -----------------------------------------------------------------
  3. // Compendium - C++ Container Class Library
  4. // Copyright (C) 1992-1994, Glenn M. Poorman, All rights reserved
  5. // -----------------------------------------------------------------
  6. // Bag implementation.
  7. // -----------------------------------------------------------------
  8.  
  9. #include <cm/include/cmbag.h>
  10.  
  11.  
  12. // "CmBag" is the default bag constructor.
  13. //
  14. CmBag::CmBag(unsigned sz) : CmHashTable(sz)
  15. {}
  16.  
  17.  
  18. // "CmBag" is the bag copy constructor.
  19. //
  20. CmBag::CmBag(const CmBag& B) : CmHashTable(B)
  21. {}
  22.  
  23.  
  24. // "=" assignment operator copies the contents of the specified
  25. // bag into this bag.
  26. //
  27. CmBag& CmBag::operator=(const CmBag& B)
  28. {
  29.   return (CmBag&) CmHashTable::operator=(B);
  30. }
  31.